﻿
@{
    ViewBag.Title = "文件上传";
}

@section Style{
    @Styles.Render("~/Content/Flat/Css/FileUpload")
}

@section Script{
    @Scripts.Render("~/Content/Flat/Js/file_upload")
}
<!--main content start-->
<section id="main-content">
    <section class="wrapper site-min-height">
        <!-- page start-->
        <section class="panel">
            <header class="panel-heading">
                jQuery 文件上传 Demo
            </header>
            <div class="panel-body">
                <div class="row">
                    <div class="col-md-12">
                        <p>
                            支持跨域、块状、resumable文件上传和客户端图像大小. <br>
                            任何服务器端平台（PHP，Python，Ruby on Rails，java，js，走等），支持标准的HTML表单上传文件。
                        </p>
                        <br>
                        <br>
                        <!-- The file upload form used as target for the file upload widget -->
                        <form id="fileupload" action="@Request.Url.PathAndQuery" method="POST" enctype="multipart/form-data">
                            <!-- Redirect browsers with JavaScript disabled to the origin page -->
                            <noscript>
                                <input type="hidden" name="redirect" value="http://blueimp.github.io/jQuery-File-Upload/">
                            </noscript>
                            <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
                            <div class="row fileupload-buttonbar">
                                <div class="col-lg-7">
                                    <!-- The fileinput-button span is used to style the file input field as button -->
                                    <span class="btn btn-success fileinput-button">
                                        <i class="glyphicon glyphicon-plus"></i>
                                        <span>添加文件...</span>
                                        <input type="file" name="files[]" multiple>
                                    </span>
                                    <button type="submit" class="btn btn-primary start">
                                        <i class="glyphicon glyphicon-upload"></i>
                                        <span>开始上传</span>
                                    </button>
                                    <button type="reset" class="btn btn-warning cancel">
                                        <i class="glyphicon glyphicon-ban-circle"></i>
                                        <span>取消上传</span>
                                    </button>
                                    <button type="button" class="btn btn-danger delete">
                                        <i class="glyphicon glyphicon-trash"></i>
                                        <span>删除</span>
                                    </button>
                                    <input type="checkbox" class="toggle">
                                    <!-- The global file processing state -->
                                    <span class="fileupload-process"></span>
                                </div>
                                <!-- The global progress state -->
                                <div class="col-lg-5 fileupload-progress fade">
                                    <!-- The global progress bar -->
                                    <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
                                        <div class="progress-bar progress-bar-success" style="width:0%;">
                                        </div>
                                    </div>
                                    <!-- The extended global progress state -->
                                    <div class="progress-extended">
                                        &nbsp;
                                    </div>
                                </div>
                            </div>
                            <!-- The table listing the files available for upload/download -->
                            <table role="presentation" class="table table-striped">
                                <tbody class="files"></tbody>
                            </table>
                        </form>
                        <br>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">Demo 备注</h3>
                            </div>
                            <div class="panel-body">
                                <ul>
                                    <li>本示例最大支持 <strong>5 MB</strong> (默认是没有限制).</li>
                                    <li>支持的图片格式 (<strong>JPG, GIF, PNG</strong>)  (默认情况下没有文件类型限制).</li>
                                    <li>上传文件<strong>5分钟</strong>后自动删除（演示设置）。 </li>
                                    <li>可从你的电脑上<strong>拖拽</strong> 文件 到此网页 (查看 <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">支持浏览器</a>).</li>
                                    <li>查看更多信息 <a href="https://github.com/blueimp/jQuery-File-Upload">网站</a> & <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">文档</a> </li>
                                </ul>
                            </div>
                        </div>
                        <!-- The blueimp Gallery widget -->
                        <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
                            <div class="slides">
                            </div>
                            <h3 class="title"></h3>
                            <a class="prev">‹</a>
                            <a class="next">›</a>
                            <a class="close">×</a>
                            <a class="play-pause"></a>
                            <ol class="indicator"></ol>
                        </div>

                    </div>
                </div>

            </div>
        </section>
        <!-- page end-->
    </section>
</section>
<!--main content end-->